<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
use Hyperf\HttpServer\Router\Router;

Router::addRoute(['GET', 'POST', 'HEAD'], '/', 'App\Controller\IndexController@index');

Router::get('/favicon.ico', function () {
    return '';
});

Router::addGroup('/blocks/',function (){
    Router::get('list/{applet_id}','App\Controller\BlocksController@list');
    Router::get('ranking/{blocks_id}.json','App\Controller\BlocksController@ranking');
    Router::get('news_info/{news_id}','App\Controller\BlocksController@news_info');
    Router::get('user_icons/{applet_id}','App\Controller\BlocksController@user_icons');
    Router::get('customer/{applet_id}','App\Controller\BlocksController@customer');
    Router::get('wallpaper/{applet_id}_{template_type}','App\Controller\BlocksController@wallpaper_list');
    Router::get('hot_broadcast/{applet_id}','App\Controller\BlocksController@hot_broadcast');
    Router::get('sys_time.json','App\Controller\BlocksController@sys_time');
    Router::get('sys_share_config/{applet_id}','App\Controller\BlocksController@sys_share_config');
});

Router::get('/get_wx_token', function () {
    return 'KDG5BfjCIULEUvwB';
});